@section('title')
    我的律师 @parent
@show

@section('subcontent')

<div id="sub"> 
   <!--左侧导航栏--> 
    <div id="menu">
		<dl class="fore2">
		    <dt id="">
		        我的律师
		    </dt>
		    <dd class="fore2_1 @if (Route::is('center.customer.lawyer_follow')) curr @endif" id="lawyer-gz">
		        <a href="{{ route('center.customer.lawyer_follow') }}" target="_self">
		            已关注
		        </a>
		    </dd>
		</dl>
	</div>
</div>

<!-- 我的律师已咨询的律师 -->
<div id="mainUserInfo">
<div class="mod-main mod-comm lefta-box">
    <div class="mt">
    	<h3 class="curr">已咨询</h3>  
    </div>
    <div class="mc">
		<table class="tb-void" width="100%" border="0" cellspacing="0" cellpadding="0">
		    <tbody>
		        <tr>
		            <th width="140">
		                头像
		            </th>
		            <th width="100">
		                姓名
		            </th>
		            <th width="">
		                咨询内容
		            </th>
		        </tr>
		        <?php 
		        foreach($data as $key => $value) {
		        ?>
		        <tr>
		            <td>
		                <div class="img-list">
		                    <a class="img-box" href="###">
		                        <img src="{{ Config::get('app.url') . '/' . $value['creator_avatar'] }}" title="{{ $value['creator_realname'] }}" width=200 height=150>
		                    </a>
		                </div>
		            </td>
		            <td>
		                <a href="###"> {{ $value['creator_realname'] }} </a>
		            </td>
		            <td>
		            	<dl class="pdeta">
                            <dt>
                                <div class="fore1">咨询内容：</div>
                                <div class="fore2">
                                	{{ $value['content'] }}
                                	<b class="time">{{ $value['created_at'] }}</b>
                                </div>
                            </dt>
	                        <div class="fore1">咨询回复：</div>
                            <?php
		        			foreach($value['comments'] as $comment) {
		        			?>
	                            <div class="fore2">
	                            	({{ $comment['creator_realname'] }}) {{ $comment['content'] }}
	                            	<b class="time">{{ $comment['created_at'] }}</b>
	                            </div>
                            <?php
                        	}
                        	?>
                        </dl>
		            </td>
		        </tr>
		        <?php
		        }
		        ?>
		    </tbody>
		</table>
    </div>
</div>
</div>


@show